﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Web;

namespace NWNT.Web.Models
{
    public class CustomPrincipal:IPrincipal
    {
        private IIdentity identity;
        public CustomPrincipal(string userName)
        {
            this.Identity = new GenericIdentity(userName);
        }
        public int UserId { get; set; }

        public string Username { get; set; }

        public IIdentity Identity
        {
            get { return this.identity; }
            private set
            {
                this.identity = value;
            }
        }

        public bool IsInRole(string role)
        {
            return false;
        }
    }
}